<template>
    
    <div>
        <h2>
           子组件--childone---{{count}}
           <button @click="changeCountadd">++</button>
           <h4>world---{{world}}</h4>
           <h2>msg---{{msg}}</h2>
        </h2>
    </div>
</template>

<script>
export default {
    name:'childone',
    props: ['count','world'],
    data () {
        return {
            msg:'努力追赶vue...'
        }
    },
    methods: {
        changeCountadd(){
            this.$parent.count++
        }
    }
}
</script>